﻿using DotNetFramework.CAP;
using System;

namespace Sample.ConsoleApp
{
    public class EventSubscriber2 : ICapSubscribe
    {
        public class OffDate
        {
            public DateTime Date { get; set; }
            public int Offset { get; set; }
        }
        [CapSubscribe("sample.console.showtime2")]
        public void ShowTime(OffDate data)
        {
            Console.WriteLine($"EventSubscriber2: {data.Offset} t:{data.Date}");
        }
    }
}
